import Vue from 'vue'
import { Button, NavBar, Tabbar, TabbarItem, Icon, List, Toast, Search, Card, Lazyload, Tab, Tabs, Swipe, SwipeItem, Popup, Field, Step, Steps, Uploader, Loading, Dialog } from 'vant'

const options = {
  loading: 'http://img.zcool.cn/community/0184e95c0fa94aa801209252ef6595.gif'
}

Toast.setDefaultOptions({ duration: 1000 })
Vue.use(Loading)
Vue.use(Swipe).use(SwipeItem)
Vue.use(Popup).use(Uploader)
Vue.use(Tab).use(Tabs)
Vue.use(Search).use(Steps)
Vue.use(List).use(Lazyload, options)
Vue.use(Icon).use(Card)
Vue.use(Tabbar).use(TabbarItem)
Vue.use(NavBar).use(Step)
Vue.use(Button).use(Field)
Vue.use(Dialog)
Vue.prototype.$Toast = Toast
Vue.prototype.$Dialog = Dialog
